#include<stdio.h>

#include<graphics.h>

#include<conio.h>


#define Width 420

#define High 420


int main()
{
	initgraph(Width,High);
	setbkcolor(RGB(255,255,0));
	cleardevice();

	setlinecolor(BLACK);
	setlinestyle(PS_SOLID,4);
	rectangle(8,8,412,412);

	
	setlinestyle(PS_SOLID,1);
	int width=50;										//

	for(int i=0;i<8;i++)
	{
		for(int j=0;j<8;j++)
		{
			if((i%2==0&&j%2==0)||(i%2==1&&j%2==1))
				setfillcolor(BLACK);
			else
				setfillcolor(WHITE);
			fillrectangle(j*width+10,i*width+10,(j+1)*width+10,(i+1)*width+10);
		}
	}

	getch();
	closegraph();
}